package eclipse.client.threadpool;
import eclipse.client.*;
import eclipse.util.*;
public class LoaderThread extends ThreadedTimer
{
	private int count = 0;
	private String msg = "Loading Eclipse";
	public LoaderThread()
	{
		setInterval(1000);
		setEnabled(true);
		start();
	}
	public void tick()
	{		
		Application.getDefault().window.setTitle(msg);
		switch(count)
		{
			case 0:
				msg = "Loading Eclipse";
				break;
			case 1:
				msg = "Loading Eclipse.";
				break;
			case 2:
				msg = "Loading Eclipse..";
				break;
			case 3:
				msg = "Loading Eclipse...";
				count = 0;
				return;
		}		
		count++;
	}
}
